import request from '@/utils/request'

//  进度列表
export function getschedule(params) {
    return request({
        url: '/produce/getschedule',
        method: 'get',
        params,
    })
}
//  进度列表
export function getscheduledetail(params) {
    return request({
        url: '/produce/getscheduledetail',
        method: 'get',
        params,
    })
}

//  内文生产进度列表
export function getNWScheduledetail(params) {
    return request({
        url: '/produce/getNWScheduledetail',
        method: 'get',
        params,
    })
}

//已排产装订生产单
export function getPlannedBindingTasks(params) {
    return request({
        url: '/produce/getPlannedBindingTasks',
        method: 'get',
        params,
    })
}


//已排产印刷生产单
export function getPlannedPrintTasks(params) {
    return request({
        url: '/produce/getPlannedPrintTasks',
        method: 'get',
        params,
    })
}

//问题订单
export function getQuestionSchedule(params) {
    return request({
        url: '/produce/getQuestionSchedule',
        method: 'get',
        params,
    })
}

//  封面生产进度列表
export function getFMScheduleDetail(params) {
    return request({
        url: '/produce/getFMScheduleDetail',
        method: 'get',
        params,
    })
}
//  欠货统计查询
export function getShortageGoods(params) {
    return request({
        url: '/produce/getShortageGoods',
        method: 'get',
        params,
    })
}

//待装订查询
export function getBinding(params) {
    return request({
        url: '/produce/getBinding',
        method: 'get',
        params,
    })
}



// 导出
export const exportSchedule = (data) => {
    return request({
      url: "/produce/exportSchedule",
      method: "post",
      data,
      responseType: "blob",
    });
  };


  
//装订已排产 加急
export function UrgentSubmit(data) {
    return request({
        url: '/produce/UrgentSubmit',
        method: 'post',
        data,
    })
}
